/*
 * @Author: sundeqi
 * @Date: 2022-03-29 10:54:20
 * @LastEditors: sundeqi
 * @LastEditTime: 2022-03-29 10:55:47
 * @Description: 工具类
 */
import 'dart:io' show Platform;

///获取打包后的资源文件实际路径
///如assets/files/index.html
String getAssetsPath(String path) {
  if (Platform.isAndroid) {
    return 'file:///android_asset/flutter_assets/' + path;
  } else {
    return 'file://Frameworks/App.framework/flutter_assets/' + path;
  }
}
